import axios from '@/utils/axios.js'
// var pre = 'greenSite/admin/v1/electric/'
//正式版本
var pre = process.env.VUE_APP_BASE_WSS;
var func = ['towerCrane', 'certification', 'greenSite', 'elevator']
var api = {}
func.forEach(value => {
  api[value] = pre + value
})

var certification = (params) => {
  return axios.get(api.certification, {params: params})
}

var greenSite = (params) => {
  return axios.get(api.greenSite, {params: params})
}

var elevator = (params) => {
  return axios.get(api.elevator, {params: params})
}

var towerCrane = (params) => {
  return axios.get(api.towerCrane, {params: params})
}

export { certification, greenSite, elevator, towerCrane }
